package com.liuwei.model;

import java.io.Serializable;
import java.util.Arrays;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.core.geo.GeoPoint;

/**
 * the bean of customer
 */

@Document(indexName = "mytest4", type = "geoType1", shards = 5, replicas = 1, refreshInterval = "-1")
public class Position implements Serializable{
	@Id
	private String id;

	private String name;
	private Double[] location;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double[] getLocation() {
		return location;
	}

	public void setLocation(Double[] location) {
		this.location = location;
	}

	@Override
	public String toString() {
		return "Position [id=" + id + ", name=" + name + ", location=" + Arrays.toString(location) + "]";
	}



}